﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Opinion.aspx.cs" Inherits="Main_Opinion" %>

<%@ Register src="../top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../bottom.ascx" tagname="bottom" tagprefix="uc2" %>
<%@ Register src="Shop.ascx" tagname="Shop" tagprefix="uc3" %>
<%@ Register src="House.ascx" tagname="House" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title><%=   ConfigurationSettings.AppSettings["title"]   %>-信息评论</title>
	<meta name="Keywords" content="<%=   ConfigurationSettings.AppSettings["Keywords"]   %>" />
    <meta name="description" content="<%=   ConfigurationSettings.AppSettings["description"]   %>" />
    <link href="../css/header/header.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/news/news.css" rel="stylesheet" type="text/css" /> 
    
<script language="javascript" type="text/javascript">
function btnback_onclick() {
 window.history.go(-1);
}
</script>
    </head>
<body>
    <form id="form1" runat="server">
    <uc1:top ID="top1" runat="server" />
    <div class="news_container">
        <div class="leftbox">
             <h1>最新楼盘<asp:HyperLink ID="hlm1" ImageUrl="../css/main/more.gif" NavigateUrl="House.aspx" CssClass="more" runat="server"></asp:HyperLink></h1>
                <div id="leftbox" class="box_text">
                     <uc4:House ID="House" runat="server"/>
                </div>
        </div>
        <div id="News_txt">
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
           <ContentTemplate>
            <div class="news_w">
                <div id="newsmaintop">
                    <div id="newstitle"><asp:Label ID="lbtitle" runat="server"></asp:Label></div>
                </div>
                <div id="newsmaincen">
                    <asp:DataList ID="dlopinion" runat="server" OnItemCommand="dlopinion_ItemCommand" Width="480px">
                           <ItemTemplate>
                                <div style="border-bottom: #666666 1px dashed; width:480px;">
                                    <div>
                                         <asp:Panel ID="Panel1" runat="server" Width="480px">
                                         <span style="font-size: 14px"></span>
                                         <asp:Label ID="lblID" runat="server" ForeColor="Red" Text='<%# Eval("留言id") %>' Visible="False"></asp:Label>
                                         <asp:Label ID="labuser" runat="server" Text='<%# Eval("留言人") %>' Font-Size="14px" ForeColor="Red"></asp:Label>
                                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                         <asp:Label ID="lbshijian" runat="server" Text='<%# Eval("留言时间") %>' Font-Size="14px"></asp:Label>
                                             &nbsp;&nbsp;&nbsp;&nbsp;
                                         <asp:LinkButton ID="lbtnshowreply" runat="server"  CssClass="page" CommandName="show">回复</asp:LinkButton>
                                             <asp:LinkButton ID="lbtnhidereply" runat="server" CommandName="hide" 
                                                 CssClass="page" Visible="False">取消</asp:LinkButton>
                                         <asp:LinkButton ID="lbtndel" runat="server"  CssClass="page" CommandName="delete" Visible="False">删除</asp:LinkButton>
                                         <br>
                                         <asp:Label ID="lbl" runat="server" Text='<%# Eval("留言内容") %>' Font-Size="14px" ForeColor="Green"></asp:Label>
                                            <div style="margin-left:50px;"> 
                                               <asp:DataList ID="dlreply" runat="server" onitemcommand="dlreply_ItemCommand">
                                                 <ItemTemplate>
                                                     <asp:Label ID="lblID" runat="server" ForeColor="Red" Text='<%# Eval("Rid") %>' 
                                                         Visible="False"></asp:Label>
                                                     <asp:Label ID="labuser" runat="server" Font-Size="14px" ForeColor="Red" 
                                                         Text='<%# Eval("Rauthor") %>'></asp:Label>
                                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                     <asp:Label ID="lbshijian" runat="server" Font-Size="14px" 
                                                         Text='<%# Eval("Rtime") %>'></asp:Label>
                                                     <asp:LinkButton ID="lbtndel" runat="server" CommandName="delete" 
                                                         CssClass="page" Visible="False">删除</asp:LinkButton>
                                                     <br />
                                                     <asp:Label ID="lbl" runat="server" Font-Size="14px" ForeColor="#3366CC" 
                                                         Text='<%# Eval("Rcontent") %>'></asp:Label>
                                                 </ItemTemplate>
                                               </asp:DataList>
                                           </div> 
                                             <asp:Panel ID="plreply" runat="server" Visible="False">
                                             <asp:TextBox ID="txtreply" runat="server" Height="50px" TextMode="MultiLine" 
                                                 Width="400px"></asp:TextBox>
                                                 <asp:LinkButton ID="lbtnreply" runat="server"  CssClass="page" CommandName="add">提交</asp:LinkButton>
                                             </asp:Panel>
                                         </asp:Panel>     
                                    </div>        
                                </div>
                             </ItemTemplate>
                         </asp:DataList>
                         <div class="topbottom">
                            <asp:LinkButton ID="lbpre" runat="server" CssClass="page" CommandArgument="pre" OnCommand="IndexChanging">上页</asp:LinkButton><span></span>
                            <asp:LinkButton ID="lbnext" runat="server" CssClass="page" CommandArgument="next" OnCommand="IndexChanging">下页</asp:LinkButton><span></span>
                            <br />
                             <asp:Button ID="btnreturn" runat="server" CssClass="btngrey" Text="返回" onclick="btnreturn_Click" />
                         </div>                        
                  </div>
            </div>
            <div class="news_tp">
                <h2>发表评论：<span>已有<asp:Label ID="labnumber" runat="server" Font-Size="14px" ForeColor="Orange"></asp:Label>位用户发表了看法
                              </span></h2>
                <asp:TextBox ID="txtcontent" CssClass="apptextbox" runat="server" TextMode="MultiLine"
                                    Width="99%" Height="100px"></asp:TextBox>
                <div class="news_ren">
                    <asp:Label ID="labname" runat="server" Text="纺织城昵称："></asp:Label>
                         <asp:TextBox ID="txtname" runat="server" CssClass="apptextbox"></asp:TextBox>
                            <asp:Button ID="btntijiao" runat="server" CssClass="btngrey"
                                        Text="提交评论" onclick="btntijiao_Click" />
                </div>
             </div>
              </ContentTemplate> 
          </asp:UpdatePanel> 
        </div>
        <div class="rightbox">
             <h1>最新小店<asp:HyperLink ID="hlm3" ImageUrl="../css/main/more.gif" NavigateUrl="Shop.aspx" CssClass="more" runat="server"></asp:HyperLink></h1>
                <div id="rightbox" class="box_text">
                     <uc3:Shop ID="Shop" runat="server"/>
                </div>
        </div>
    </div>        
    <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
